package org.springbus.habit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 属性值表
 * </p>
 *
 * @author Mr.Han
 * @since 2024-05-16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("attribute_info")
@Schema(description = "属性值表")
public class AttributeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description ="平台属性ID")
    @TableField("category_id")
    private Long categoryId;

    @Schema(description ="属性名称")
    @TableField("name")
    private String name;

    @Schema(description ="属性标签ID")
    @TableField("label_id")
    private String labelId;

    @Schema(description ="是否删除 0=未删除 1=删除")
    @TableField("deleted")
    private Boolean deleted;

    @Schema(description ="创建时间")
    @TableField("gmt_create")
    private Date gmtCreate;

    @Schema(description ="修改时间")
    @TableField("gmt_modified")
    private Date gmtModified;
}
